import java.util.Scanner;
import java.lang.Math;
public class equation
{
	public static void main(String args[])
	{
		double x1,x2,n;
		Scanner scanner=new Scanner(System.in);
		System.out.println("输入第一个整形数：");
		int a=scanner.nextInt();
		System.out.println("输入第二个整形数：");
		int b=scanner.nextInt();
		System.out.println("输入第三个整形数：");
		int c=scanner.nextInt();
		if((b*b)-(4*a*c)<0)
			System.out.println("方程式无解。");
		else
			{
				n=Math.sqrt((b*b)-(4*a*c));
				x1=(-b+n)/(2*a);
				x2=(-b-n)/(2*a);
				System.out.println("方程的根为："+x1+" "+x2);
			}
	}
}